package com.codeduck.injection.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author: <a href="mailto:codeduck@163.com">Codeduck</a>
 * @createDate: 2021-12-24
 */
@Configuration
@ComponentScan("com.codeduck.injection.entity") // 扫描指定的包路径
public class TaskBeanConfig {

    /**
     * 测试方法 {@link com.codeduck.injection.TaskBeanConfigTest}
     *
     * 凡是被@Component注解修饰的类，都可以被@ComponentScan扫描到并自动注入IOC中
     */
}
